package cn.iocoder.yudao.module.call.dal.mysql.aiqualitytestingelsecondition;

import java.util.*;

import cn.iocoder.yudao.framework.common.pojo.PageResult;
import cn.iocoder.yudao.framework.mybatis.core.query.LambdaQueryWrapperX;
import cn.iocoder.yudao.framework.mybatis.core.mapper.BaseMapperX;
import cn.iocoder.yudao.module.call.dal.dataobject.aiqualitytestingelsecondition.AiQualityTestingElseConditionDO;
import org.apache.ibatis.annotations.Mapper;
import cn.iocoder.yudao.module.call.controller.admin.aiqualitytestingelsecondition.vo.*;

/**
 * 大模型质检其他条件 Mapper
 *
 * @author 数创万维
 */
@Mapper
public interface AiQualityTestingElseConditionMapper extends BaseMapperX<AiQualityTestingElseConditionDO> {

    default PageResult<AiQualityTestingElseConditionDO> selectPage(AiQualityTestingElseConditionPageReqVO reqVO) {
        return selectPage(reqVO, new LambdaQueryWrapperX<AiQualityTestingElseConditionDO>()
                .eqIfPresent(AiQualityTestingElseConditionDO::getAiQualityTestingId, reqVO.getAiQualityTestingId())
                .eqIfPresent(AiQualityTestingElseConditionDO::getType, reqVO.getType())
                .eqIfPresent(AiQualityTestingElseConditionDO::getQuery, reqVO.getQuery())
                .eqIfPresent(AiQualityTestingElseConditionDO::getValue, reqVO.getValue())
                .betweenIfPresent(AiQualityTestingElseConditionDO::getCreateTime, reqVO.getCreateTime())
                .orderByDesc(AiQualityTestingElseConditionDO::getId));
    }

}